package com.sm.model;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    private Integer userId;

    private String realName;

    private String nickName;

    private String account;

    private String password;

    private Integer refereesUserId;

    //最高身份 0普通 1vip 2超级VIP 3合作园 4联盟园 5区域经理
    private Integer bestVip;

    private String headLink;

    private String recommendCode;

    private String phone;

    private Integer sex;

    private String birth;

    private String area;

    private Double balance;

    private Double allIncome;

    private String zfb;

    private Date vipEnd;

    private Integer vipCard;

    private String yhCard;

    private String idCard;

    private String remark;

    private String payPassword;

    /**
     * 用户身份，0普通用户，1默认上级
     */
    private Integer role;

    /**
     * 是否有真正的上级1有0没有
     */
    private Integer hasRealParent;

    private String ext4;

    private String ext5;
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date updateTime;

    //token
    private String token;

    //上级邀请码
    private String parentCode;

}
